Panel
| Kind of class: | class |
|---|---|
| Inherits from: | UIComponent < MovieClip |
| Classpath: | gfx.layout.Panel |
| File last modified: | Wednesday, 30 June 2010, 09:09:04 |
The Panel defines a minimal container with support for constraining sub-elements (other Panels and non-Panel elements), defining focus behavior and setting controller input support for sub-elements. This class is expected to be attached to container symbols that require the aforementioned functionality/behaviors.
Component metadata:
| InspectableList | "controllerMask" "focusModeHorizontal" "focusModeVertical" "hconstrain" "vconstrain" "visible" |
|---|
Summary
Constructor
Instance properties
- vconstrain
- The vertical constraint rule for the Panel.
- hconstrain
- The horizontal constraint rule for the Panel.
- focusModeVertical
- The vertical focus behavior rule for the Panel.
- focusModeHorizontal
- The horizontal focus behavior rule for the Panel.
- controllerMask
- This bit-mask defines the controllers that are allowed to operate (manipulate focus) inside the Panel.
Instance properties inherited from UIComponent
__height __width _disabled _displayFocus _focused addEventListener cleanUpEvents disabled dispatchEvent displayFocus enableInitCallback focused focusHandlerReference focusTarget hasEventListener height initialized invalidationIntervalID removeAllEventListeners removeEventListener sizeIsInvalid soundMap visible width
Class methods
Class methods inherited from UIComponent
Instance methods
Instance methods inherited from UIComponent
Constructor
Panel
function Panel (
)
Instance properties
controllerMask
controllerMask:String = "FFFF"
(read,write)
This bit-mask defines the controllers that are allowed to operate (manipulate focus) inside the Panel. By default all controllers are enabled.
focusModeHorizontal
focusModeHorizontal:String = "default"
(read,write)
The horizontal focus behavior rule for the Panel. This rule will be used when focus is about to leave the left and right edges of the Panel. By default focus will move out of the Panel if there are other focusable elements in the operating direction.
focusModeVertical
focusModeVertical:String = "default"
(read,write)
The vertical focus behavior rule for the Panel. This rule will be used when focus is about to leave the top and bottom edges of the Panel. By default focus will move out of the Panel if there are other focusable elements in the operating direction.
hconstrain
hconstrain:String = "none"
(read,write)
The horizontal constraint rule for the Panel. This rule will be used by the Panel's parent panel (if any) for layout purposes. By default no rule is defined for the Panel.
vconstrain
vconstrain:String = "none"
(read,write)
The vertical constraint rule for the Panel. This rule will be used by the Panel's parent panel (if any) for layout purposes. By default no rule is defined for the Panel.